# hash:sha256:94c739d63663867e30bb1a794427b9078e9c02e8789057674792589284b716ca
FROM registry.codeocean.com/codeocean/r-studio:2022.07.0-548-r4.2.1-ubuntu18.04

ARG DEBIAN_FRONTEND=noninteractive

RUN Rscript -e 'remotes::install_version("electionsBR", "0.3.2")' \
    && Rscript -e 'remotes::install_version("estimatr", "1.0.0")' \
    && Rscript -e 'remotes::install_version("foreign", "0.8-86")' \
    && Rscript -e 'remotes::install_version("gridExtra", "2.3")' \
    && Rscript -e 'remotes::install_version("lubridate", "1.9.3")' \
    && Rscript -e 'remotes::install_version("magrittr", "2.0.3")' \
    && Rscript -e 'remotes::install_version("mvtnorm", "1.2-4")' \
    && Rscript -e 'remotes::install_version("openxlsx", "4.2.5.2")' \
    && Rscript -e 'remotes::install_version("patchwork", "1.1.3")' \
    && Rscript -e 'remotes::install_version("stringr", "1.5.1")' \
    && Rscript -e 'remotes::install_version("tidyverse")'
